import request from './request'

//根据用户名切换实验室
export function cutTestRoom(params) {
    return request(`mes/userTestRoom/cutTestRoom`, 'get', params || {})
}
//残阳管理
export function getRemnants(params) {
    return request(`mes/data/selectSampleAboutCellMark`, 'get', params || {})
}

//出库记录
export function sampleRecord(params) {
    return request(`mes/sampleRecord/page`, 'get', params || {})
}
//入库记录
export function pageByUp(params) {
    return request(`mes/sampleRecord/pageByUp`, 'get', params || {})
}

//样品位置下拉数据
export function selectCruelAreaName(params) {
    return request(`mes/data/selectCruelAreaName`, 'get', params || {})
}

//所有实验室下拉数据
export function selectDistinctRoom(params) {
    return request(`mes/data/selectDistinctRoom`, 'get', params || {})
}

//样品查询
export function getSample(params) {
    return request(`mes/data/sample/page`, 'get', params || {})
}

//样品查询 (支持多选)
export function getSample2(params) {
    return request(`mes/data/selectSampleByCondition`, 'get', params || {})
}

export function getSample3(params) {
    return request(`mes/data/sample/pageByPc`, 'get', params || {})
}
//静置查询
export function getSample4(params) {
    return request(`mes/data/sample/pageStaticByPc`, 'get', params || {})
}

//呼叫线缆AMR
export function fromRack(params) {
    return request(`mes/dispatch/flow/residualRecycle/fromRack`, 'post', params || {})
}


// 任务id查询AMR任务
export function getAmrTask(params) {
    return request('mes/dispatch/getAmrTask', 'get', params || {})
}

// 释放AMR
export function artificialAMR(params) {
    return request('mes/dispatch/artificial', 'post', params || {})
}


// 样品上架
export function putOnCell(params) {
    return request('mes/data/sample/putOnCell', 'post', params || {})
}

// 线边堆叠机层数统计
export function analysis(params) {
    return request('mes/statistic/analysis', 'get', params || {})
}

//所有拆垛集中存储
export function selectTask(id) {
    return request(`mes/dispatch/flow/residualRecycle/fromStacker?storeAreaId=${id}`, 'post', {})
}
//所有梳齿工作站全部集中存储
export function selectAllTask(params) {
    return request(`mes/dispatch/flow/residualRecycle/allFromStacker`, 'post', params || {})
}

//取消AMR任务
export function cancelTask(params) {
    return request(`mes/dispatch/mscmds`, 'get', params || {})
}

//消息列表
export function getMessageByRoom(params) {
    return request(`mes/userTestRoom/getMessageByRoom`, 'get', params || {})
}

//根据任务id查询每条任务的状态等信息
export function selectOneInfo(params) {
    return request(`mes/dispatch/getAmrTask`, 'get', params || {})
}


// 获取空料箱
export function getEmptyBox(params) {
    return request(`mes/dispatch/flow/emptyBox`, 'post', params || {})
}

// 绑定料箱
export function bindBox(params) {
    return request(`mes/data/box/binding`, 'post', params || {})
}

// 样品流转
export function sampleMove(params) {
    return request(`mes/dispatch/flow/sampleMove`, 'post', params || {})
}

// 下架
export function creatcyEmpty(params) {
    return request(`mes/amrControl/carry?samNumber=${params.samNumber}`, 'post', {})
}

// 确认返样
export function putOffCellSample(params) {
    return request(`mes/data/sample/putOffCell`, 'post', params || {})
}

//获取AMR搬运点位信息
export function getAmrDw(params) {
    return request(`mes/amrControl/getAMRTarget`, 'get', params || {})
}

//处理消息
export function excuteInfo(params) {
    return request(`mes/data/updateSampleStilledTime`, 'get', params || {})
}







